package wq.gdky005.util.broadcastreceiver;

import android.app.Activity;

/** 测试广播的使用  */
public class BroadcastReceiverTestActivity extends Activity {

	String action = "wq.gdky005.message";
	BroadcastReceiverHelper broadcastReceiverHelper;
	
	/** 在这里注册广播  */
	@Override
	protected void onStart() {
		broadcastReceiverHelper = new BroadcastReceiverHelper(this);
		broadcastReceiverHelper.registerAction(action);
		
		super.onStart();
	}
	
	/** 取消注册广播  */
	@Override
	protected void onStop() {
		unregisterReceiver(broadcastReceiverHelper);
		super.onStop();
	}
	
}
